public class area {
    public static  void area(int r){
        System.out.println("该圆面积为"+(3.14*r*r));
    }
    public static  void area(int a,int b){
        System.out.println("该长方形面积为"+(a*b));
    }
}
class TestArea{
    public static void main(String[] args) {
        area.area(4);
        area.area(1,2);
    }
}
